﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master pages/MasterPage.Master" AutoEventWireup="true" CodeBehind="MenuDiseñar.aspx.cs" Inherits="Presentación.MenuDiseñar" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Estilos/ListView.css" rel="stylesheet" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <asp:Button ID="NuevaGrillaButton" runat="server" Text="Nueva Grilla" OnClick="NuevaGrillaButton_Click" style="font-size: large" />
    </div>

    <div>
        <h2>MIS GRILLAS</h2>
        <asp:ListView ID="MisGrillasListView" runat="server" GroupItemCount="8" OnItemCommand="MisGrillasListView_ItemCommand">
            <ItemTemplate>
                <td class="listView">
                    <asp:LinkButton ID="nombreGrillaLinkButton" runat="server" Text='<%# Eval("nombreGrilla") %>' CommandName="comandoDiseñar" CommandArgument='<%# Eval("idGrilla") %>'></asp:LinkButton>
                </td>
            </ItemTemplate>

            <GroupTemplate>
                <table>
                    <tr>
                        <td id="itemPlaceholder" runat="server"></td>                        
                    </tr>
                </table>
            </GroupTemplate>

            <LayoutTemplate>
                <table>
                    <tr id="groupPlaceholder" runat="server"></tr>
                </table>
            </LayoutTemplate>
        </asp:ListView>

        <p><asp:Label ID="grillasLabel" runat="server" Text="GRILLAS" style="font-size: x-large; font-weight: 700" Visible="False"></asp:Label></p>
        <asp:ListView ID="grillasListView" runat="server" GroupItemCount="8" OnItemCommand="grillasListView_ItemCommand">
            <ItemTemplate>
                <td class="listView">
                    <asp:LinkButton ID="nombreGrillaLinkButton" runat="server" Text='<%# Eval("nombreGrilla") %>' CommandName="comandoDiseñar" CommandArgument='<%# Eval("idGrilla") %>'></asp:LinkButton>
                </td>
            </ItemTemplate>

            <GroupTemplate>
                <table>
                    <tr>
                        <td id="itemPlaceholder" runat="server"></td>                        
                    </tr>
                </table>
            </GroupTemplate>

            <LayoutTemplate>
                <table>
                    <tr id="groupPlaceholder" runat="server"></tr>
                </table>
            </LayoutTemplate>
        </asp:ListView>
    </div>
</asp:Content>
